import Vue from 'vue';
import Vuex from 'vuex'
import persistedState from "vuex-persistedstate"

Vue.use(Vuex)


// 引入小仓库

import home from './home'
import search from './search'

const store = new Vuex.Store({


  //配置plugins属性配置，并指定存储位置
  plugins: [persistedState({
    storage: window.sessionStorage
  })],
  // ...
  modules: {



    home,
    search,

  }
})

export default store